package vip.specimen.system.datasource.validation.question;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.UUID;

/**
 * *@Author: 余浪人
 * *@Date：2021/4/27 14:57
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Getter
@Setter
public class QuestionProblemValidation {
    @NotBlank(message = "请填写问题")
    @Size(max = 2147483647, message = "问题长度不合法")
    @QuestionUnique
    private String problem;
    @Size(max = 2147483647, message = "答案长度不合法")
    private String result;
    @Size(max = 2147483647, message = "解析长度不合法")
    private String analysis;
    private Integer click;
    private Boolean isPay = Boolean.FALSE;
    private Double pay = 0.00;// TODO 验证
    @NotBlank(message = "请选择问题类型")
    @QuestionType
    private String questionType;
    @NotNull(message = "请选择问题分类")
    @QuestionColumn
    private UUID categories;
}
